package jp.sourceforge.akjrcp.text_douga.parser;

import java.util.Map;

public class PropertyLine extends DataLine {
Map<String, String> map;
	public PropertyLine(String line,Map<String,String> map) {
		super(line);
		this.map=map;
	}
	public String[] getKeys(){
		return (String[]) map.keySet().toArray(new String[map.size()]);
	}
	
	public String getValue(String key){
		return map.get(key);
	}

	public String toString(){
		String vs="";
		String keys[]=getKeys();
		for (int i = 0; i < keys.length; i++) {
			vs+=keys[i]+"="+getValue(keys[i])+" ";
		}
		return "PropertyLine:"+vs+"("+line+")";
	}

}
